<?php
namespace app\thread\controller;
use app\thread\model\Thread;
use think\Db;
class Reply{
    function index(){
        $name=input('name');
        $context=input('context');
        $z_id=input('z_id');
        $first_time=date("Y-m-d H:i:s");
        $last_time=$first_time;
        Db::name('reply')->insert(['name'=>$name,'context'=>$context,'z_id'=>$z_id,'first_time'=>$first_time,'last_time'=>$last_time]);

        return '回复成功！';
    }
}